package com.sas.hnn;

import android.app.Activity;
import android.app.ListActivity;
import android.content.ClipData.Item;
import android.content.res.Resources;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;

public class NutzerActivity extends Activity {
	
	/**
	 * @uml.property  name="tAG"
	 */
	private final String TAG=NutzerActivity.class.getSimpleName();
	/**
	 * @uml.property  name="sb"
	 * @uml.associationEnd  
	 */
	private SeekBar sb;
   
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        handleSeekBar();
        }
        
    	private void handleSeekBar() {
            sb= (SeekBar) findViewById(R.id.seekBar1);
            sb.setMax(100);
            sb.setProgress(70);
            sb.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {
    			
    			public void onStopTrackingTouch(SeekBar seekBar) {
    				// TODO Auto-generated method stub
    				Persons.filterAge=sb.getProgress();
    				PersonList frag= (PersonList) getFragmentManager().findFragmentById(R.id.frag_rows);
    				frag.filterAge();   				
    			}
    			
    			public void onStartTrackingTouch(SeekBar seekBar) {
    				// TODO Auto-generated method stub
    				
    			}
    			
    			public void onProgressChanged(SeekBar seekBar, int progress,
    					boolean fromUser) {

    			}
    		});
    	}
       
}